//
//  XTXHomeCell.m
//  陪我V聊
//
//  Created by JackChen on 2018/8/7.
//  Copyright © 2018年 wzb. All rights reserved.
//

#import "XTXHomeCell.h"

@interface XTXHomeCell ()
@property (nonatomic, weak) UIImageView *xtxImageView;

@end

@implementation XTXHomeCell


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self chushihuashouyeCell];
    }
    return self;
}
-(void)chushihuashouyeCell{
    UIImageView *xtxImageView=[[UIImageView alloc]initWithFrame:self.bounds];
    [self addSubview:xtxImageView];
    xtxImageView.contentMode=UIViewContentModeScaleAspectFill;
    xtxImageView.layer.masksToBounds=YES;
    _xtxImageView=xtxImageView;
}
-(void)setConsumerModel:(ConsumerModel *)consumerModel{
    _consumerModel=consumerModel;
    [_xtxImageView sd_setImageWithURL:[NSURL URLWithString:consumerModel.headimage]];
}

@end
